package concurrency.chapter8;

import java.util.stream.Stream;

/**
 * @author honway.liu
 * @date 2019-06-07 00:44
 * @email gm100861@gmail.com
 * @blog http://linuxsogood.org
 */
public class ClassB {
    public void sayHi() {
        Stream.of(Thread.currentThread().getStackTrace()).filter(t -> !t.isNativeMethod()).forEach(t -> {
            System.out.println("类: " + t.getClassName() + ", 方法名:" + t.getMethodName() + ",行号:" + t.getLineNumber());
        });
    }
}
